import java.net.MalformedURLException;
import java.rmi.*;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;


public class CalServer {

	public static void main(String[] args) throws RemoteException, AlreadyBoundException, MalformedURLException{
		LocateRegistry.createRegistry(Registry.REGISTRY_PORT);
		Calculator cal = new Calculator();
		Naming.bind("CalServer", cal);
		System.out.println("Server is ready.");
	}

}
